package com.example.englishquiz.views

import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class CoinDisplayViewInstrumentedTest {
//    @get:Rule
//    val activityRule = ActivityScenarioRule(TestActivity::class.java)

//    @Test
//    fun setCoinCount_displays_correct_coin_count() {
//        activityRule.scenario.onActivity { activity ->
//            val coinDisplayView = activity.findViewById<CoinDisplayView>(R.id.coinDisplayView)
//
//            val coinCount = 15
//            coinDisplayView.setCoinCount(coinCount)
//
//            // Verify the TextView displays the correct value
//            onView(withId(R.id.coinCount)).check(matches(withText(coinCount.toString())))
//        }
//    }
}

//    @Test
//    fun setAnimatedCoinCount_animates_the_coin_count() {
//        activityRule.scenario.onActivity { activity ->
//            val coinDisplayView = CoinDisplayView(activity)
//            activity.setContentView(coinDisplayView)
//
//            coinDisplayView.setAnimatedCoinCount(startValue = 5, endValue = 20, duration = 500)
//
//            // Verify animation (manual or mock behavior)
//            Thread.sleep(600) // Wait for animation to complete
//            onView(withId(R.id.coinCount)).check(matches(withText("20")))
//        }
//    }
